From: Ray Strode Date: Sat, 17 Sep 2011 21:09:47 +0000 (-0400) Subject: ctrlAltTab: don't allow more than one popup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7649 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2b2a8b47479f2d64ae17ff9b3ed22fe0cc7cd6f4;p=gnome-shell.git ctrlAltTab: don't allow more than one popup In a normal user session you can't have more than one popup, because the popup is modal and we don't allow the popup to show up when there are other modals. In a GDM session, however, the login dialog is modal, and we want a popup, so we don't have that same check. This commit changes the ctrlAltTab manager code to not allow multiple popups. https://bugzilla.gnome.org/show_bug.cgi?id=659177 --- diff --git a/js/ui/ctrlAltTab.js b/js/ui/ctrlAltTab.js index d0845a3a6..59d1a5e54 100644 --- a/js/ui/ctrlAltTab.js +++ b/js/ui/ctrlAltTab.js @@ -123,7 +123,16 @@ CtrlAltTabManager.prototype = { return; items.sort(Lang.bind(this, this._sortItems)); - new CtrlAltTabPopup().show(items, backwards); + + if (!this._popup) { + this._popup = new CtrlAltTabPopup(); + this._popup.show(items, backwards); + + this._popup.actor.connect('destroy', + Lang.bind(this, function() { + this._popup = null; + })); + } } };